#include <iostream>

using namespace std;

class Animal
{
public:
	void getAnimal()
	{
		count++;
		cout<<count<<endl;
	}
private:
	int age;
	static float weight;
	static int count;  //static修饰的成员属性统计，或者用于对象之间传递数据
};
int Animal::count=0;
int main()
{
	cout<<sizeof(Animal)<<endl;
	Animal a;
	a.getAnimal();
	
	Animal b;
	b.getAnimal();
	
	Animal c;
	c.getAnimal();
}